// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /share/generateToken */
export async function generateToken(
  body: API.ShareGenerateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString>('/share/generateToken', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /share/verifyToken */
export async function verifyToken(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.verifyTokenParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseShareInfo>('/share/verifyToken', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
